>In article <4ht810$cp8@mulga.cs.mu.OZ.AU>, trb@munta.cs.mu.OZ.AU (Timothy Robin BARBOUR) writes:
>> I am using g++ 2.7.2 with ld 2.5.2.6 on a Linux 586-a.out box. When I turn on
>> exception handling using the flag -fhandle-exceptions, I get link errors.
><snip>
>
>> ioserror.cpp(.text+0xf50): undefined reference to `L2657'
>> ioserror.cpp(.text+0xf54): undefined reference to `L2658'
><snip>
>> + lots more...
>I get this problem if I turn the optimiser on (-O), but not otherwise. Are you
>using the optimiser?
Yes. I was using: -m486 -g -O -fhandle-exceptions. Removing the -O does stop
the link errors - thanks for the information. Presumably this is an optimiser bug, but if so it is pretty bad - a lot of people must be using exceptions.
I am writing some code for a server that will need to throw exceptions, and
will eventually need -O3.
Does anyone have further information on this problem
e.g. whether it is a known g++ bug and whether has been or is being fixed ?